package com.glp.work.flow.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 工单查询结果DTO
 *
 * @author jhuang1
 */
@Data
public class WfOrderResultDTO implements Serializable {

    private static final long serialVersionUID = 246132593328861379L;

    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 应用ID
     */
    @ApiModelProperty(value = "应用ID")
    private String appId;

    /**
     * 流程定义KEY
     */
    @ApiModelProperty(value = "流程定义KEY")
    private String procDefKey;

    /**
     * 流程定义id（版本）
     */
    @ApiModelProperty(value = "版本号")
    private String version;

    /**
     * 流程定义名称
     */
    @ApiModelProperty(value = "流程定义名称")
    private String procDefName;

    /**
     * 流程实例ID
     */
    @ApiModelProperty(value = "流程实义ID")
    private String processId;

    /**
     * 订单ID（外部）
     */
    @ApiModelProperty(value = "订单ID（外部）")
    private String orderId;

    /**
     * 工单标题
     */
    @ApiModelProperty(value = "工单标题")
    private String orderTitle;

    /**
     * 工单状态
     */
    @ApiModelProperty(value = "工单状态")
    private String orderStatus;

    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    private String wfId;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    private String taskId;

    /**
     * 当前节点  审批完成为空
     */
    @ApiModelProperty(value = "当前节点  审批完成为空")
    private String currentNode;

    @ApiModelProperty(value = "批次")
    private String batch;

    @ApiModelProperty(value = "节点耗时")
    private String totalTime;

    /**
     * 审批的节点
     */
    @ApiModelProperty(value = "审批的节点")
    private String taskName;

    /**
     * 创建用户
     */
    @ApiModelProperty(value = "创建用户")
    private String createUser;

    /**
     * 创建用户
     */
    @ApiModelProperty(value = "创建用户")
    private String createUserNo;

    /**
     * 更新用户
     */
    @ApiModelProperty(value = "更新用户")
    private String updateUser;

    /**
     * 将要是谁办理
     */
    @ApiModelProperty(value = "操作人（操作用户）")
    private String name;

    /**
     *  任务节点
     */
    @ApiModelProperty(value = "任务节点")
    private String taskDefKey;

    /**
     * 流程处理数据
     */
    @ApiModelProperty(value = "流程处理数据")
    private String dynamicForm;
    @ApiModelProperty(value = "备注")
    private String remarks;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "类型1：待办，0：已办")
    private String type;
    @ApiModelProperty(value = "查询条件1")
    private String index_1;

    @ApiModelProperty(value = "查询条件2")
    private String index_2;

    @ApiModelProperty(value = "查询条件3")
    private String index_3;

}
